function MyPlugin(options) {
  this.options = options
}

MyPlugin.prototype.apply = function(compiler) {
  compiler.plugin('compilation', function(compilation, options) {
    compilation.plugin('html-webpack-plugin-after-html-processing', function(htmlPluginData, callback) {
      htmlPluginData.html = htmlPluginData.html.replace(/<script src="\/static\/js(([\s\S])*?)<\/script>/g, '')
      // callback(null, htmlPluginData) // TypeError: callback is not a function
    })
  })
}

module.exports = MyPlugin
